Fix for alerts in Garmin GPI.
authorrobertl <robertl>
Sat, 27 Feb 2010 21:23:20 +0000 (21:23 +0000)
committerrobertl <robertl>
Sat, 27 Feb 2010 21:23:20 +0000 (21:23 +0000)
garmin_gpi.c

index e01f5598d23e099fa2f2748855d26b9c6897f858..01a6e2a8929e3635aafa671e729928830ee0fed4 100644 (file)
@@ -931,7 +931,7 @@ wdata_write(const writer_data_t *data)
                gbfputint32(GPS_Math_Deg_To_Semi(wpt->longitude), fout);
        
                gbfputint16(1, fout);   /* ? always 1 ? */
-               gbfputc(0, fout);       /* seems to be 1 when extra options present */
+               gbfputc(alerts, fout);  /* seems to be 1 when extra options present */
                
                write_string(wpt->shortname, 1);